package com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.service;

import com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.dao.Impl.SearchDaoImpl;
import com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.dao.SearchDao;
import com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.dao.Impl.SearchDaoImpl;
import com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.dao.SearchDao;
import com.yunzheng.studyLeaveSystem.modules.admin.search.trueSearch.entity.SearchEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: YunZheng
 * @Date: 2023/01/30/10:53
 * @Description:
 */
public class SearchService {
    public List<SearchEntity> showInformation(String name) throws Exception {
        SearchDao searchDao = new SearchDaoImpl();

        //AdjustDao adjustDao = new AdjustDaoImpl();
        return searchDao.queryInformation(name);
    }
}
   /* SearchDao searchDao = new SearchDao();
    public boolean isSearch(String searchName) throws Exception {
        String name = searchDao.query(searchName);
        if(searchName.equals(name)){
            return true;
        }
        return false;

    }*/



